package com.tangqihang229350526.mynote.viewmodel

import androidx.lifecycle.LiveData
import androidx.lifecycle.MutableLiveData
import androidx.lifecycle.ViewModel
import com.tangqihang229350526.mynote.database.Note

class DetailViewModel : ViewModel() {
    private val note: MutableLiveData<Note> = MutableLiveData()

    fun setNote(note: Note) {
        this.note.value = note
    }

    fun getNote(): LiveData<Note> {
        return note
    }
}